package library;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;

enum Sex { male, female };

public class User {
	@DatabaseField(generatedId = true)
	protected int id;
	@DatabaseField(canBeNull = false, indexName = "user_name_index")
	protected String name;
	@DatabaseField(canBeNull = false)
	protected String password;
//	@DatabaseField
//	private String hkid;
	@DatabaseField(dataType = DataType.ENUM_STRING)
	protected Sex sex;
	@DatabaseField
	protected String tel;
	@DatabaseField
	protected String address;

	public User(){
		
	}

	public int getId() {
		return id;
	}
	
	public String getName() {
		return name;
	}

	public String getTel() {
		return tel;
	}

	public String getAddress() {
		return address;
	}
}
